#include <iostream>

int main() {
    FILE * pt;
    char str[3][10];
    int i = 0;
    if ((pt = fopen("D:\\C\\string.txt", "r")) == NULL) {
        printf("Cannot open file!\n");
        exit(0);
    }
    while (fgets(str[i], 10, pt) != NULL) {
        printf("%s", str[i]);
        i++;
    }
    fclose(pt);
    return 0;
}
